package spring.cloud.tasks.executor.bo;

import lombok.Builder;
import lombok.Getter;
import spring.cloud.tasks.dispatcher.TaskDealService;
import spring.cloud.tasks.executor.service.TaskManager;
import spring.cloud.tasks.metadata.api.task.bo.TaskItemDefine;
import spring.cloud.tasks.metadata.api.task.entity.TaskEntity;
import spring.cloud.tasks.metadata.api.task.entity.TaskRuntimeEntity;

import java.util.List;

/**
 * Created by xiongpu on 2019/8/6.
 */
@Getter
@Builder
public class ProcessorParam {
    /**
     * 任务管理器
     */
    private TaskManager taskManager;
    /**
     * 任务信息
     */
    private TaskEntity taskEntity;
    /**
     * 任务处理bean
     */
    private TaskDealService taskDealService;

    /**
     * 任务项
     */
    private List<TaskItemDefine> taskItemDefineList;
    /**
     * 任务运行信息
     */
    private volatile TaskRuntimeEntity taskRuntimeEntity;
}
